In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'the sign on the door says the train is out of service'. Count the occurrences of the word 'the' in the given sentence.