Input: Sentence: 'A boat is pulled up on a gravel beach'. Count the number of nouns in this sentence.
Output: 3