Input: Sentence: 'A bowl of fruit containing several types of apples'. Count the number of nouns in this sentence.
Output: 4