Input: Sentence: 'It is an image of an outside space'. Count the number of nouns in this sentence.
Output: 2