Task: Program Execution
Input (English): Sentence: 'a man eating carrots and an apple wearing a horse mask'. How many words end with the letter 'a' in the sentence.
Output (English): 2