Input: Sentence: 'a group of people sitting on a bench some resting and others on cellphones'. Count the number of nouns in this sentence.
Output: 6