TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a man with two tennis balls and a racket on a tennis court'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a truck tipped over next to a guard rail'. Count the occurrences of the word 'to' in the given sentence.

SOLUTION: 1

PROBLEM: Sentence: 'a brown bear on rocks with cloudy sky in background'. Count the occurrences of the word 'with' in the given sentence.

SOLUTION:
1