TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'the table  in the apartment is set for two to have cake and a doll is seated in one chair'. Count the occurrences of the word 'is' in the given sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a man in a red shirt and plaid pants sits on a brown couch and holds a little baby'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 4

PROBLEM: Sentence: 'a group of people are sitting in the back of a truck'. Count the occurrences of the word 'of' in the given sentence.

SOLUTION:
2