Input: Sentence: 'A Doctor with a patient inside a room'. Count the number of nouns in this sentence.
Output: 3