checks for two longest words and the word count