Input: Sentence: 'very types many ripe  fruits in a basket'. Count the number of nouns in this sentence.
Output: 3