Input: Sentence: 'A cat is sitting in the driver's seat while staring at the pedals'. Count the number of nouns in this sentence.
Output: 4