counts the occurrences of a given word in a given file