Task: Program Execution
Input (English): Sentence: 'a spaniel type dog being petted next to a bookshelf'. Count the occurrences of the word 'a' in the given sentence.
Output (English): 2