Input: Sentence: 'Some sort of a blue sofa sits in a small room; a mirror and a picture hang above it'. Count the number of nouns in this sentence.
Output: 5