You can't. You might be able to run something in JavaScript when a person closes the page, but since it can easily be turned off it won't show how many persons are viewing your site. Maybe you should do it another way. You could for example count how many persons have had a page load the latest 15 minutes, just use their session id and store the time in a database.