Input: Sentence: 'A couple of bears are playing with pumpkins'. Count the number of nouns in this sentence.
Output: 3