Input: Sentence: 'A sunset over a long bridge and water'. Count the number of nouns in this sentence.
Output: 3