Input: Sentence: 'A giraffe looking through the fence at a pepsi can'. Count the number of nouns in this sentence.
Output: 3