In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a baseball game in progress with the batter in the middle of the swing'. Count the occurrences of the word 'the' in the given sentence.