Input: Sentence: 'A fruit and vegetable stand has bananas up front'. Count the number of nouns in this sentence.
Output: 4