Input: Sentence: 'A cheese cake sitting on top of a pan under a knife'. Count the number of nouns in this sentence.
Output: 5