Task: Program Execution
Input (English): Sentence: 'dog curled up on large purple bean bag chair'. How many words end with the letter 'g' in the sentence.
Output (English): 2