Input: Sentence: 'A man poses for a picture while on skis on the hill'. Count the number of nouns in this sentence.
Output: 4