Input: Sentence: 'Workers wearing hats and aprons work behind the counter'. Count the number of nouns in this sentence.
Output: 4