TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a brown bear walks through the shade of many trees'. Count the occurrences of the word 'bear' in the given sentence.

SOLUTION: 1

PROBLEM: Sentence: 'a black and white image of an old castle with a clock'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a group of people preparing to ski down a slope'. Count the occurrences of the word 'preparing' in the given sentence.

SOLUTION:
1