Input: Sentence: 'A red railroad car is next to two yellow trucks (or buses)'. Count the number of nouns in this sentence.
Output: 4