Input: Sentence: 'Man standing in kitchen with dog sitting beside him'. Count the number of nouns in this sentence.
Output: 3