Task: Program Execution
Input (English): Sentence: 'a man riding a horse down a beach with a cowboy hat on'. How many words end with the letter 'n' in the sentence.
Output (English): 3