In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a railway crossing sign that warns onlookers to stop'. Count the occurrences of the word 'onlookers' in the given sentence.