Input: Sentence: 'A painting of a woman sitting on a wooden bench'. Count the number of nouns in this sentence.
Output: 3