Input: Sentence: 'A man on a motorbike passing a truck'. Count the number of nouns in this sentence.
Output: 3