Task: Program Execution
Input (English): Sentence: 'a police officer who is riding on a horse'. How many words end with the letter 'a' in the sentence.
Output (English): 2