Input: Sentence: 'Two women are snacking and drinking beers at a pub'. Count the number of nouns in this sentence.
Output: 3