Task: Program Execution
Input (English): Sentence: 'the resting cow is sitting on the beach'. How many words end with the letter 'g' in the sentence.
Output (English): 2