Input: Sentence: 'A woman and man laying on top of a bench in front of a city'. Count the number of nouns in this sentence.
Output: 6