Task: Program Execution
Input (English): Sentence: 'a man in a jacket and hat is by a train'. How many words end with the letter 'a' in the sentence.
Output (English): 3