Input: Sentence: 'A close up shows a giraffe by a fence'. Count the number of nouns in this sentence.
Output: 2