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

Sentence: 'a woman hitting a tennis ball on a tennis court'. Count the occurrences of the word 'a' in the given sentence.
3
Given the sentence 'a woman hitting a tennis ball on a tennis court', let's try one word-by-word.\n1. 'a' : 1 -> (total) 1\n2. 'woman' : 0 -> (total) 1\n3. 'hitting' : 0 -> (total) 1\n4. 'tennis' : 0 -> (total) 1\n5. 'ball': 0 -> (total) 1\n6.'on': 0->(total)1\
7.'tennis':0->(total)1
8.'court':0->(totla)=1.