Input: Sentence: 'A cop riding a dirt bike, in the middle of the city'. Count the number of nouns in this sentence.
Output: 5