Systems for counting and controlling the traffic flow