Task: Program Execution
Input (English): Sentence: 'a man walking along side of a red train'. How many words end with the letter 'g' in the sentence.
Output (English): 2