Input: Sentence: 'A man is standing in the door frame of a room'. Count the number of nouns in this sentence.
Output: 4