Different types of devices will have different types of technology to help them count the vehicles. They often make use of piezoelectric sensors in the road and pneumatic road tubes. It is possible to tune the devices for traffic data collection so that they can record different types of vehicles. As mentioned, when you tune the devices to be more sensitive, they will be able to pick up the number of bikes that come across the road.