Input: Sentence: 'A man and woman holding electronic devices in their hands'. Count the number of nouns in this sentence.
Output: 4