Input: Sentence: 'a boy doing a trick on a rail with his skate board'. Count the number of nouns in this sentence.
Output: 5