Input: Sentence: 'Motorcycles and cars are causing heavy traffic in the street'. Count the number of nouns in this sentence.
Output: 4