Parses a (large) text file and counts the number of occurrences of each word in the file.