Input: Sentence: 'A basket filled with bananas on top of a table'. Count the number of nouns in this sentence.
Output: 4