Input: Sentence: 'Is that a piece of cake dumped onto the pizza'. Count the number of nouns in this sentence.
Output: 3