Input: Sentence: 'Three black cats laying or sitting on the floor'. Count the number of nouns in this sentence.
Output: 2