Input: Sentence: 'A large bird flying over a sandy beach'. Count the number of nouns in this sentence.
Output: 2