Started separate class for counting repeated occurrence of word and returning top three most used words in a string