TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a black horse standing on a hill top with a white horse'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a pink unicorn painted on a newspaper box across the street from a bus in front of a theater'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 4

PROBLEM: Sentence: 'a plate with doughnuts stacked 5 tiers high and a small log cylinder atop on the sidewalk by grass park with green trees'. Count the occurrences of the word 'park' in the given sentence.

SOLUTION:
1