Input: Sentence: 'A young man holds his tie up for the photo'. Count the number of nouns in this sentence.
Output: 3