In this task, you need to count the occurrences of the given word in the given sentence.

Example Input: Sentence: 'a pile of trash in a trash can'. Count the occurrences of the word 'of' in the given sentence.
Example Output: 1

Example Input: Sentence: 'a cake shaped like a baseball bat and a hat'. Count the occurrences of the word 'a' in the given sentence.
Example Output: 3

Example Input: Sentence: 'a sandwich and a bottle on a table'. Count the occurrences of the word 'a' in the given sentence.
Example Output:
3