Task: Program Execution
Input (English): Sentence: 'an orange dog and a white dog laying on a bed'. How many words end with the letter 'g' in the sentence.
Output (English): 3