Input: Sentence: 'Then men are prepared to share the desert with everyone'. Count the number of nouns in this sentence.
Output: 2