Input: Sentence: 'A park bench sitting next to a tree in a park'. Count the number of nouns in this sentence.
Output: 4