Input: Sentence: 'a person riding a skate board grinding on a rail'. Count the number of nouns in this sentence.
Output: 4