Input: Sentence: 'A man wearing a stripped shirt with a stripped tie'. Count the number of nouns in this sentence.
Output: 3