Input: Sentence: 'A group of young people walking along  a beach with a dog'. Count the number of nouns in this sentence.
Output: 4