Task: Program Execution
Input (English): Sentence: 'a bear with a flat head stands in an enclosure'. How many words end with the letter 'd' in the sentence.
Output (English): 1