TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'there is a pizza with onions mushrooms and peppers'. Count the occurrences of the word 'mushrooms' in the given sentence.

SOLUTION: 1

PROBLEM: Sentence: 'street signs with faces on them on the side of the street'. Count the occurrences of the word 'the' in the given sentence.

SOLUTION: 2

PROBLEM: Sentence: 'the cat is standing on the bed with the pillows'. Count the occurrences of the word 'the' in the given sentence.

SOLUTION:
3