Input: Sentence: 'a kid in a room wearing a tie and beards'. Count the number of nouns in this sentence.
Output: 4