Input: Sentence: 'smoothing over the top layer of a pie'. Count the number of nouns in this sentence.
Output: 2