Input: Sentence: 'Three women sit next to each other at a restaurant'. Count the number of nouns in this sentence.
Output: 2