Input: Sentence: 'A skier with his skis and back pack taking a rest'. Count the number of nouns in this sentence.
Output: 4