Input: Sentence: 'A hallway with a small view of a bathroom toilet'. Count the number of nouns in this sentence.
Output: 4