Task: Program Execution
Input (English): Sentence: 'line of elephants dressed in gold headdress'. How many words end with the letter 'd' in the sentence.
Output (English): 2