Task: Program Execution
Input (English): Sentence: 'a train rides through a city next to a building'. How many words end with the letter 'a' in the sentence.
Output (English): 3