Input: Sentence: 'a kid smiling nest to a cake on the counter'. Count the number of nouns in this sentence.
Output: 4