TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a black cat lying in an empty suitcase peers out over the edge of the suitcase'. Count the occurrences of the word 'black' in the given sentence.

SOLUTION: 1

PROBLEM: Sentence: 'a cat with a purple and red collar sitting in a bowl'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a person in pajamas reading on a bed'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION:
2