Input: Sentence: 'a toddler sits next to two women on a bench'. Count the number of nouns in this sentence.
Output: 3