Input: Sentence: 'A man taking a picture of three children under a blooming tree'. Count the number of nouns in this sentence.
Output: 4