Input: Sentence: 'A couple of cows laying on the grass next to a man wearing bicycle gear'. Count the number of nouns in this sentence.
Output: 6