Object counter « counting box »

Please Google pir sensor and study how they work.

Paul