TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a man wearing glasses sits on a bench looking to the side'. Count the occurrences of the word 'man' in the given sentence.

SOLUTION: 1

PROBLEM: Sentence: 'a table top with some laptops on it'. Count the occurrences of the word 'with' in the given sentence.

SOLUTION: 1

PROBLEM: Sentence: 'a boy in green shirt eating a carrot at a table'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION:
3