Input: Sentence: 'A microwave is sitting on a wooden shelf'. Count the number of nouns in this sentence.
Output: 2