Input: Sentence: 'Two pizzas are on a table with many candles'. Count the number of nouns in this sentence.
Output: 3