TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a guy hitting a ball at a professional baseball game'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a cat standing next to a computer keyboard'. Count the occurrences of the word 'to' in the given sentence.

SOLUTION: 1

PROBLEM: Sentence: 'a yellow truck with a car sitting on its trailer'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION:
2