Input: Sentence: 'A baby giraffe standing in its pen with hay all around it'. Count the number of nouns in this sentence.
Output: 4