Input: Sentence: 'A brown cat sits on a black laptop on a bed'. Count the number of nouns in this sentence.
Output: 3