Task: Program Execution
Input (English): Sentence: 'an elephant is walking through a grassy swamp'. How many words end with the letter 'p' in the sentence.
Output (English): 1