Input: Sentence: 'An adult giraffe and a baby giraffe in an enclosed field'. Count the number of nouns in this sentence.
Output: 5