TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a bedroom is shown with a rug on the floor'. Count the occurrences of the word 'on' in the given sentence.

SOLUTION: 1

PROBLEM: Sentence: 'the man with many graphic novels on a display table is on a cell phone'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a man walking beside a horse with a kid on it next to a dog'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION:
4