Input: Sentence: 'Large ships sit in the ocean near the dock'. Count the number of nouns in this sentence.
Output: 3