In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a yellow train pulled into a train station next to a red train'. Count the occurrences of the word 'train' in the given sentence.