Detailed Instructions: In this task, you need to count the occurrences of the given word in the given sentence.
Problem:Sentence: 'a purple sofa and loveseat a gray chair and a man sitting in the corner at a desk'. Count the occurrences of the word 'a' in the given sentence.
Solution:
4