Input: Sentence: 'a wooden stick figure and an orange pot with berries and leaves'. Count the number of nouns in this sentence.
Output: 4