Input: Sentence: 'a person riding a bike with a bus behind them'. Count the number of nouns in this sentence.
Output: 3