Input: Sentence: 'a girl laying on a bench in the park'. Count the number of nouns in this sentence.
Output: 3