Input: Sentence: 'A bunch of oranges with an apple on top'. Count the number of nouns in this sentence.
Output: 4