Input: Sentence: 'a granite table with a piece of cake and knife on it'. Count the number of nouns in this sentence.
Output: 5