Input: Sentence: 'A man flipping upside down on top of  a ski slope'. Count the number of nouns in this sentence.
Output: 3