Input: Sentence: 'A painted face on a gray fire hydrant'. Count the number of nouns in this sentence.
Output: 3