TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a plate of ham and rice and a fork on a red tray'. Count the occurrences of the word 'plate' in the given sentence.

SOLUTION: 1

PROBLEM: Sentence: 'a picture of a medical exam room with a bed and chair'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a man is sitting at a table with plates and peanut butter and jelly and lemon slices are on the table'. Count the occurrences of the word 'and' in the given sentence.

SOLUTION:
3