Task: Program Execution
Input (English): Sentence: 'a room has a bed with a window and curtain and television'. How many words end with the letter 'd' in the sentence.
Output (English): 3