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: 'painting of a ship in grass with lighthouse in background'. Count the occurrences of the word 'in' in the given sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a woman with a scarf wrapped around her holding a plate with chocolate cake'. Count the occurrences of the word 'with' in the given sentence.

SOLUTION:
2