Definition: In this task, you need to count the occurrences of the given word in the given sentence.
Input: Sentence: 'a stack of items that starts with a book and ends with a battery'. Count the occurrences of the word 'a' in the given sentence.
Output:
3