TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a man sitting at a table holding a glass of wine'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a man standing on a white star that is on the floor and he has his hands crossed'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a man sitting on a rock near a dog'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION:
3