Task: Program Execution
Input (English): Sentence: 'a dog rides on a motorcycle while a man walks behind'. How many words end with the letter 'a' in the sentence.
Output (English): 3