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

Sentence: 'a cake shaped like a baseball bat and a hat'. Count the occurrences of the word 'a' in the given sentence.
3

Sentence: 'a delivery truck for a library parked by a meter'. Count the occurrences of the word 'a' in the given sentence.
3

Sentence: 'a bed room with a messy bed and a window'. Count the occurrences of the word 'a' in the given sentence.

3