Input: Sentence: 'a wood bench is in the middle of a large field'. Count the number of nouns in this sentence.
Output: 4