Input: Sentence: 'A man in a suit snaps a mirror selfie'. Count the number of nouns in this sentence.
Output: 4