Input: Sentence: 'An infant in a bicycle seat near a large passenger ship'. Count the number of nouns in this sentence.
Output: 5