Input: Sentence: 'A man sitting on a wooden bench with his laptop'. Count the number of nouns in this sentence.
Output: 3