Input: Sentence: 'Young woman smiling wearing a shoulderless dress and a necktie.'. Count the number of nouns in this sentence.
Output: 3