Input: Sentence: 'a person wearing a suit and tie'. Count the number of nouns in this sentence.
Output: 2