implement timer and word counter