Input: Sentence: 'A public restroom with several urinals and stalls'. Count the number of nouns in this sentence.
Output: 3