finished the word counting program