Input: Sentence: 'A small white and brown dog carrying a red frisbee'. Count the number of nouns in this sentence.
Output: 2