Input: Sentence: 'A number of young people gathered on a brick surface'. Count the number of nouns in this sentence.
Output: 4