Input: Sentence: 'A group of people having dinner and drinking wine'. Count the number of nouns in this sentence.
Output: 4