Counts the occurence of each word in the a file