a. Use a
Java Bean to record this data
b. Load this java bean into application scope when application starts
c. Store the state of java bean into database or file. Here you need ContextListener
d. When there is a new access, change the state of java bean, and show "you are xxxx guests"