Task: Program Execution
Input (English): Sentence: 'a person holding a heart shaped apple in his hand'. How many words end with the letter 'd' in the sentence.
Output (English): 2