In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'giraffe with front legs spread looking at water'. Count the occurrences of the word 'legs' in the given sentence.