They are common in Sweden for slower roads and streets. I’m quite certain they don’t count the cars, instead just leaving enough time even for slow cars to pass through.
That also breaks down when they need to fully stop traffic from both sides so a equipment can be moved. How do you tell the automated lights to stop everything automatically when those instances are irregular.
You press a button. I’m not joking either, they have a way to program them quickly for exactly this reason. Set them on a cycle, or turn them to manual.
The system would also need to detect which direction the traffic was going. In morning rush hour, outbound would be much heaver than inbound (of your neighborhood) so it would typically be unidirectional.