Input: Sentence: 'A toddler is laying on some kind of flat surface'. Count the number of nouns in this sentence.
Output: 3