Input: Sentence: 'A person sitting on top of a wooden bench near a field'. Count the number of nouns in this sentence.
Output: 4