Input: Sentence: 'A small elephant licking a blue metal fence'. Count the number of nouns in this sentence.
Output: 3