Input: Sentence: 'there is a red bird sitting outside of a window'. Count the number of nouns in this sentence.
Output: 2