Task: Program Execution
Input (English): Sentence: 'a man in a green shirt and a white beard and a green machine'. How many words end with the letter 'a' in the sentence.
Output (English): 4