Task: Program Execution
Input (English): Sentence: 'a young girl with a painted face is on a horse'. How many words end with the letter 'a' in the sentence.
Output (English): 3