TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a close up of a person sitting holding a sandwich'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a home office features full bookcase a laptop and a red leather chair'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a cat sits on an open laptop'. Count the occurrences of the word 'an' in the given sentence.

SOLUTION:
1