In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'two cats are laying on a bed one cat is in the foreground and staring at the camera while the other cat sleeps in the background'. Count the occurrences of the word 'the' in the given sentence.