In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a cow scratches her head with a back leg'. Count the occurrences of the word 'leg' in the given sentence.