Task: Program Execution
Input (English): Sentence: 'the cat is perched on the chair in the living room'. Count the occurrences of the word 'the' in the given sentence.
Output (English): 3