Input: Sentence: 'A black and white cat laying on top of a keyboard'. Count the number of nouns in this sentence.
Output: 3