Input: Sentence: 'A group of both young and full grown elephants covered in dirt'. Count the number of nouns in this sentence.
Output: 3