Input: Sentence: 'The woman holding an umbrella is walking towards a doorway'. Count the number of nouns in this sentence.
Output: 3