Input: Sentence: 'A person on a skateboard reads while riding'. Count the number of nouns in this sentence.
Output: 2