Input: Sentence: 'A man with a monkey on his shirt holding a banana'. Count the number of nouns in this sentence.
Output: 4