Input: Sentence: 'A smiling man is sitting on a park bench'. Count the number of nouns in this sentence.
Output: 3