Input: Sentence: 'A man wearing a dress shirt and a tie sitting against a dark background'. Count the number of nouns in this sentence.
Output: 5