Returns how many times a space-separated word occurs in a file.