Task: Program Execution
Input (English): Sentence: 'a man wearing a red shirt red cap and white shorts playing tennis'. How many words end with the letter 'd' in the sentence.
Output (English): 3