Input: Sentence: 'Man on skate board riding a stair rail up'. Count the number of nouns in this sentence.
Output: 5