Input: Sentence: 'A beagle is poking its nose out through a slightly open sliding glass door'. Count the number of nouns in this sentence.
Output: 4