Task: Program Execution
Input (English): Sentence: 'a teddy bear that has a top hat on'. How many words end with the letter 'a' in the sentence.
Output (English): 2