Input: Sentence: 'it is a tree stump with a door on it'. Count the number of nouns in this sentence.
Output: 3