Input: Sentence: 'A man skateboarding through an obstacle course with cones'. Count the number of nouns in this sentence.
Output: 4