Hi Dody
What you intend to do is extremely complex and difficult!
First, in order to detect simultaneously several frequencies in real time, you have to use some form of convolution process: a Fourier transform, f.e.. But , that's not enough, because each single vehicle will produce multiple frequencies, mainly harmonics of the motor's rpm. Therefore, in the mass of frequencies that are collected and identified, you have to find groups of harmonically related frequencies (that is frequencies whose respective phases remain stable in time). Once you've sorted all the frequencies present in groups, you're able to determine the number of vehicles by counting the number of groups.
It's a computation intensive application for a DSP circuit...
Good luck anyway!