Input: Sentence: 'A man with a white electrical device in his hands'. Count the number of nouns in this sentence.
Output: 3