In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a mostlyempty dining car in a train showing scenery out the windows'. Count the occurrences of the word 'dining' in the given sentence.