TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a small bird perched on a branch in a tree'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a train on a train track next to a concrete platform'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'meter car in the middle of the road in the way of cars'. Count the occurrences of the word 'in' in the given sentence.

SOLUTION:
2