Input: Sentence: 'Boston terrier sitting on a bench next to a standing woman'. Count the number of nouns in this sentence.
Output: 3