Input: Sentence: 'The earth next to a house is upturned'. Count the number of nouns in this sentence.
Output: 2