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

Sentence: 'a horse and a dog facing each other in a brown field of grass'. Count the occurrences of the word 'a' in the given sentence.
3

Sentence: 'a man sitting at a table holding a glass of wine'. Count the occurrences of the word 'a' in the given sentence.
3

Sentence: 'a bird flying over the beach as a wave hits the rocks'. Count the occurrences of the word 'the' in the given sentence.
2