Input: Sentence: 'A man with a cell phone in his hand while travelling on public transportation'. Count the number of nouns in this sentence.
Output: 5