TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a child laying on a bed with his head hanging up side down and a teddy bear leaning against the bed'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a sidewalk with trimmed hedges and signage'. Count the occurrences of the word 'hedges' in the given sentence.

SOLUTION: 1

PROBLEM: Sentence: 'a train the is on a track next to a platform'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION:
3