Input: Sentence: 'A giraffe locked up inside of a jail cell'. Count the number of nouns in this sentence.
Output: 3