Input: Sentence: 'A girl is on skis while a dog stands behind her'. Count the number of nouns in this sentence.
Output: 3