TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a teddy bear is strapped into a seat'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a woman on a court swinging a tennis racket'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a frame has six pictures two with a horse'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION:
2