Task: Program Execution
Input (English): Sentence: 'a number of elephants in a river with their caretaker'. How many words end with the letter 'r' in the sentence.
Output (English): 4