Input: Sentence: 'A planter has plants in it outside near flowers'. Count the number of nouns in this sentence.
Output: 3