TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a cat with a pensive look guarding its plate by a computer'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a nick knack of a dog a coffee cup and a tray of food'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 4

PROBLEM: Sentence: 'a half eaten pizza on top of a pan next to a role on a plate'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION:
4