Input: Sentence: 'a carrot and a piece of celery and a knife on a cutting board'. Count the number of nouns in this sentence.
Output: 6