Input: Sentence: 'A man in blue shirt holding a baby upside down'. Count the number of nouns in this sentence.
Output: 3