Task: Program Execution
Input (English): Sentence: 'a hound dog tangled in sheets while laying on a bed'. How many words end with the letter 'd' in the sentence.
Output (English): 3