I think image processing will be a better approach for vehicle counting projects like this. You can use a Raspberry pi and the OPenCV library.