In this task, you need to count the occurrences of the given word in the given sentence.

[Q]: Sentence: 'a small train engine pulling a freight car'. Count the occurrences of the word 'a' in the given sentence.
[A]: 2


[Q]: Sentence: 'the person is taking a picture in the mirror while riding in the car'. Count the occurrences of the word 'the' in the given sentence.
[A]: 3


[Q]: Sentence: 'a dog and a backpack by a bench on a desolate road'. Count the occurrences of the word 'a' in the given sentence.
[A]:
4