Input: Sentence: 'A dog wearing a leash sitting in a lush green field'. Count the number of nouns in this sentence.
Output: 3