Input: Sentence: 'Two white teddy bears sitting next to each other on a bed covered in pillows'. Count the number of nouns in this sentence.
Output: 4