Input: Sentence: 'A plate on a table that has food on it'. Count the number of nouns in this sentence.
Output: 3