You can also use video recognition technology to shoot with a camera and calculate the number of people according to pattern recognition software.
You can also use infrared light blocking to combine the light blocking time of all doors.
The accuracy of this figure is uncertain.