Input: Sentence: 'a number of fruits on a counter with bananas'. Count the number of nouns in this sentence.
Output: 4