By monitoring the inclination of the outputs from the sensor, that is, the amount of change and by inputting a value (a maximum value-1) to each of devices except a device at which the largest number of persons has been detected, the number of persons who have successively passed the detection area and the number of persons who intersect at the passage can further accurately be detected.