Input: Sentence: 'A man is smiling at the camera on the slopes'. Count the number of nouns in this sentence.
Output: 3