Input: Sentence: 'Cupcakes part iced part not with a walnut on top'. Count the number of nouns in this sentence.
Output: 5