ive got this big/easy problem that i need to solve but i cant..
What im trying to do is to count cars on a highway, and i actually can detect the moving cars and put bounding boxes on them... but when i try to count them, i simply cant. I tried making a variable (nCars) and increment everytime the program creates a bounding box, but that seems to increment to many times.. 
The question is: Whats the best way to count moving cars/objects?

PS: I Dont know if this is a silly question but im going nutts.... Thanks for everything (:
And im new here but i know this website for some time (: Its great!