Input: Sentence: 'A public restroom has a stall and a urinal'. Count the number of nouns in this sentence.
Output: 2