Added a word counter