ok well how about they decide that the first time a prisonor goes they turn the light bulb on and then off and each time after that they dont touch the light. so then the prisoners jsut count the numebr of times the light bulb is on and once they reach 100 they will know that everyone has beeen in the room once.