Input: Sentence: 'several electronic gadgets sit atop a table'. Count the number of nouns in this sentence.
Output: 2