In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a bird flying over the beach as a wave hits the rocks'. Count the occurrences of the word 'the' in the given sentence.