In this task, you need to count the occurrences of the given word in the given sentence.
--------
Question: Sentence: 'giraffe with front legs spread looking at water'. Count the occurrences of the word 'legs' in the given sentence.

Answer: 1


Question: Sentence: 'a small train engine pulling a freight car'. Count the occurrences of the word 'a' in the given sentence.

Answer: 2


Question: Sentence: 'a sandwich with meat and sauce on a plate'. Count the occurrences of the word 'a' in the given sentence.

Answer:
2