Input: Sentence: 'a flock of birds flying outside at sunset'. Count the number of nouns in this sentence.
Output: 3