Task: Program Execution
Input (English): Sentence: 'a young man with a blue tie is playing with a boy while a man in the background looks on'. How many words end with the letter 'g' in the sentence.
Output (English): 2