Task: Program Execution
Input (English): Sentence: 'an old photo if a young man doing a crossword puzzle in bed'. How many words end with the letter 'd' in the sentence.
Output (English): 3