Input: Sentence: 'A man with a white-painted face and a bananas on his head'. Count the number of nouns in this sentence.
Output: 4