Input: Sentence: 'The dessert has ice cream and some fruit'. Count the number of nouns in this sentence.
Output: 4