Input: Sentence: 'A person holding a bottle while riding a skateboard'. Count the number of nouns in this sentence.
Output: 3