In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a room that has three sofa chairs one of which has a painting on it'. Count the occurrences of the word 'a' in the given sentence.