TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a person is riding a bicycle but there is a train in the background'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a freckled white horse standing in a grassy area'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a bathroom with a white toilet sitting next to a sink'. Count the occurrences of the word 'toilet' in the given sentence.

SOLUTION:
1