Input: Sentence: 'A variety of desserts being displayed on some shelves'. Count the number of nouns in this sentence.
Output: 3