Input: Sentence: 'A table is shown with cakes on top of it'. Count the number of nouns in this sentence.
Output: 3