Input: Sentence: 'An umbrella upside down outside on the dirt'. Count the number of nouns in this sentence.
Output: 2