Input: Sentence: 'A family standing next to each other on top of a  beach'. Count the number of nouns in this sentence.
Output: 3