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

Sentence: 'a couple of elephants out in the field having a snack'. Count the occurrences of the word 'a' in the given sentence.
2

Sentence: 'a table top with some laptops on it'. Count the occurrences of the word 'with' in the given sentence.
1

Sentence: 'a row of bright colored chairs and a bench outside a shop window'. Count the occurrences of the word 'a' in the given sentence.

3