Input: Sentence: 'A man standing on top of a mountain holding a phone'. Count the number of nouns in this sentence.
Output: 4