Input: Sentence: 'A man wearing a green shirt and black jacket stands holding a square shaped kite in a grassy area near a large building'. Count the number of nouns in this sentence.
Output: 6