Input: Sentence: 'Skiers pause for a photo before hitting the slopes'. Count the number of nouns in this sentence.
Output: 3