Input: Sentence: 'An adult elephant and baby elephant loving on one another'. Count the number of nouns in this sentence.
Output: 4