Input: Sentence: 'A baby is being hold next to an elephant'. Count the number of nouns in this sentence.
Output: 2