Input: Sentence: 'A haw sits perched on top of a bench in the woods'. Count the number of nouns in this sentence.
Output: 4