Input: Sentence: 'A blue and white fire hydrant on a lawn'. Count the number of nouns in this sentence.
Output: 3