Input: Sentence: 'a close up of a slice of cake on a plate'. Count the number of nouns in this sentence.
Output: 4