Task: Program Execution
Input (English): Sentence: 'people are petting a horse that has a cop riding it'. Count the occurrences of the word 'a' in the given sentence.
Output (English): 2