Input: Sentence: 'a patch of vegetation sits next to a small tree'. Count the number of nouns in this sentence.
Output: 3