Task: Program Execution
Input (English): Sentence: 'two cats sleeping next to an older person in a bed'. How many words end with the letter 'g' in the sentence.
Output (English): 1