Input: Sentence: 'A scarecrow is propped up among a few pumpkins'. Count the number of nouns in this sentence.
Output: 2