Input: Sentence: 'Two men sit together as they have a drink'. Count the number of nouns in this sentence.
Output: 2