Input: Sentence: 'Two gentlemen politely discussing something while others look on'. Count the number of nouns in this sentence.
Output: 2