Input: Sentence: 'A gentleman taking a picture of his food with his phone'. Count the number of nouns in this sentence.
Output: 4