In this task, you need to count the occurrences of the given word in the given sentence.
Q: Sentence: 'a baseball player swinging a bat at a ball'. Count the occurrences of the word 'a' in the given sentence.
A: 
3