counting occurrences of a given word in a given file