TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a man with glasses a collar shirt and a tie on'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'two females sitting outside with two dogs near a clock on a pole'. Count the occurrences of the word 'two' in the given sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a fourth of a cake sitting on top of a cake plate'. Count the occurrences of the word 'of' in the given sentence.

SOLUTION:
2