using optical gates to count how many peapole are in a room with(b83609)

May be describe how this code is supposed to work and what you are doing with the relays. Supply a picture of how it is wired up and explain your choice of B83609 sensors for counting people in a room.