Input: Sentence: 'A small device is sitting on a wood table'. Count the number of nouns in this sentence.
Output: 3