up down counter
i am trying to design an up down counter circuit which will increment counter when a person enters and decrement when a person leaves a room.but the problem is,how will i pass 1/0 when a person enters/leaves a room to up/down the counter?i am totally confused.need a block diagram badly.
thanks is advance.