Input: Sentence: 'A few people are hanging out and appreciating their time'. Count the number of nouns in this sentence.
Output: 2