Input: Sentence: 'Large giraffe leaning its head over a wooden barrier'. Count the number of nouns in this sentence.
Output: 3