Input: Sentence: 'A green plant with leaves and very thick stems'. Count the number of nouns in this sentence.
Output: 2