Task: Program Execution
Input (English): Sentence: 'a dog on a boat looking at the water and the sun shining on the water'. How many words end with the letter 'g' in the sentence.
Output (English): 3