In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'painting of a ship in grass with lighthouse in background'. Count the occurrences of the word 'in' in the given sentence.