Task: Program Execution
Input (English): Sentence: 'an elegant kitchen has an attached stone fireplace'. How many words end with the letter 'd' in the sentence.
Output (English): 1