Input: Sentence: 'A small kitchen knife on top of a sliced carrot'. Count the number of nouns in this sentence.
Output: 4