In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a metal exit door to the next train car'. Count the occurrences of the word 'to' in the given sentence.