exercise 3 - fixed WordCount