Input: Sentence: 'a messy room with clothes and a computer'. Count the number of nouns in this sentence.
Output: 3