Input: Sentence: 'Two tourists sitting on top of an elephant'. Count the number of nouns in this sentence.
Output: 3