Input: Sentence: 'A man on skies going through the woods'. Count the number of nouns in this sentence.
Output: 3