Input: Sentence: 'A dog looks out while sitting in the snow'. Count the number of nouns in this sentence.
Output: 2