Input: Sentence: 'A woman sits on a bicycle while talking to several men'. Count the number of nouns in this sentence.
Output: 3