Task: Program Execution
Input (English): Sentence: 'a  middle aged man in a field tossing a frisbee'. How many words end with the letter 'd' in the sentence.
Output (English): 2