sample word counter example