Takes in a text file and finds how often each word occurs.