Task: Program Execution
Input (English): Sentence: 'a bed with a white canopy and curtains'. How many words end with the letter 'd' in the sentence.
Output (English): 2