Input: Sentence: 'there are several men sitting at a table together in front of flags'. Count the number of nouns in this sentence.
Output: 4