Input: Sentence: 'Two man in front of a tree holding up items'. Count the number of nouns in this sentence.
Output: 4