Input: Sentence: 'Two giraffes in a grassy enclosure, looking over a fence'. Count the number of nouns in this sentence.
Output: 3