Input: Sentence: 'A market with many varieties of fruit and shoppers'. Count the number of nouns in this sentence.
Output: 4