Input: Sentence: 'There is an empty bench by some trees and flowers'. Count the number of nouns in this sentence.
Output: 3