Input: Sentence: 'A boat that has been beached on the shore'. Count the number of nouns in this sentence.
Output: 2