this counts the string input to determine the longest word. works.