Given a file with a word in each line, count occurrences of each word.