Input: Sentence: 'A small toilet sits in the corner of a bare room'. Count the number of nouns in this sentence.
Output: 3