Input: Sentence: 'a lady walking in the rain carrying a pink umbrella'. Count the number of nouns in this sentence.
Output: 3