Input: Sentence: 'An elephant is shown throwing dirt on its back'. Count the number of nouns in this sentence.
Output: 3