Task: Program Execution
Input (English): Sentence: 'group of people wearing red and orange jerseys on the back of horses'. How many words end with the letter 'g' in the sentence.
Output (English): 1