Input: Sentence: 'A German shepherd laying in front of a door'. Count the number of nouns in this sentence.
Output: 3