Input: Sentence: 'a red plate with food on it and a knife on a black table'. Count the number of nouns in this sentence.
Output: 4