Input: Sentence: 'A man posing for a picture with a tie and suit on'. Count the number of nouns in this sentence.
Output: 3