Input: Sentence: 'a plate of fruits and ice cream and a donut'. Count the number of nouns in this sentence.
Output: 5