Input: Sentence: 'A man on a motorcycle is in mid air'. Count the number of nouns in this sentence.
Output: 3