In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'one man playing the wii by his lonesome'. Count the occurrences of the word 'by' in the given sentence.