Input: Sentence: 'a black gray and white cat and a green vase'. Count the number of nouns in this sentence.
Output: 2