Input: Sentence: 'A view of a few cocunuts in a basket'. Count the number of nouns in this sentence.
Output: 3