Input: Sentence: 'A vase containing flowers and water on a table'. Count the number of nouns in this sentence.
Output: 4