Input: Sentence: 'a poodle looking at a  bug on a potted plant'. Count the number of nouns in this sentence.
Output: 3