Input: Sentence: 'A table with a stone tray and  a pizza with cheese'. Count the number of nouns in this sentence.
Output: 5