Input: Sentence: 'A glass of wine and a candle are on the table'. Count the number of nouns in this sentence.
Output: 4