Task: Program Execution
Input (English): Sentence: 'a keyboard sits in the foreground and a television in the background'. How many words end with the letter 'd' in the sentence.
Output (English): 4