Task: Program Execution
Input (English): Sentence: 'group of cows painted with similar patterns walking through a town'. How many words end with the letter 'g' in the sentence.
Output (English): 1