Input: Sentence: 'A brown and black cat laying in a sink'. Count the number of nouns in this sentence.
Output: 2