TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a brown dog sitting in front of a tv in a room'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a man holding a glove on a baseball field'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a sandwich sits on a plate with pickle slices and sauerkraut'. Count the occurrences of the word 'slices' in the given sentence.

SOLUTION:
1