TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a man dives to his right to make a forehand tennis shot'. Count the occurrences of the word 'to' in the given sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a hotdog french fries coffee and a packet of ketchup and mustard sitting on a tray'. Count the occurrences of the word 'and' in the given sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a room with a blue rug and various appliances on a dresser'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION:
3