Input: Sentence: 'A cat laying in the bathroom sink'. Count the number of nouns in this sentence.
Output: 2