Input: Sentence: 'A man flips his skateboard next to a building'. Count the number of nouns in this sentence.
Output: 3