Input: Sentence: 'Adults with a baby and two cakes on a table'. Count the number of nouns in this sentence.
Output: 4