Input: Sentence: 'A giraffe that has its legs spread out'. Count the number of nouns in this sentence.
Output: 2