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

Sentence: 'a surfer is on the waves with a lighthouse in the background'. Count the occurrences of the word 'the' in the given sentence.
2

Sentence: 'a woman in a red shirt holding a cup of coffee and a donut'. Count the occurrences of the word 'a' in the given sentence.
4

Sentence: 'a gray bird about to perch on a branch'. Count the occurrences of the word 'a' in the given sentence.

2