Input: Sentence: 'a black gray and white cat a toilet sink and mirror'. Count the number of nouns in this sentence.
Output: 4