Task: Program Execution
Input (English): Sentence: 'a bed has a tray with many foods on it'. How many words end with the letter 'y' in the sentence.
Output (English): 2