Input: Sentence: 'A guy in a hat and scarf cooking on a grill'. Count the number of nouns in this sentence.
Output: 5