Input: Sentence: 'A man is using a urinal at a public restroom'. Count the number of nouns in this sentence.
Output: 3