This is an example of a people counter or any simple counter. It has an ability to memorize the results. Enjoy -