Input a text file and output the number of times each word is used.