Task: Program Execution
Input (English): Sentence: 'a large herd of elephant wading in a dirty river'. How many words end with the letter 'r' in the sentence.
Output (English): 1