Input: Sentence: 'Birds on a platform flying on and off'. Count the number of nouns in this sentence.
Output: 2