Input: Sentence: 'A group of young children sharing a pizza and having drinks'. Count the number of nouns in this sentence.
Output: 4