Input: Sentence: 'Two giraffes stand near a chain link fence and one of them is a baby'. Count the number of nouns in this sentence.
Output: 5