Input: Sentence: 'Flock of birds taking off from water near long pier on open ocean'. Count the number of nouns in this sentence.
Output: 5