Input: Sentence: 'A orange and white car laying in the middle of a bathroom rug'. Count the number of nouns in this sentence.
Output: 4