Input: Sentence: 'A person watching an elephant walking down a dirt road carrying people on its back'. Count the number of nouns in this sentence.
Output: 6