Of course, I just realized that that won't do squat to get a number of http/web users. I don't know what would be best for that. You might execute "top | grep http" and subtract 2, but that'd be unrealistic --- you'd probably have a lot of child processes up all the time --- plus, what if it's a shared host?
You might have to use some kind of cookie, ordered serially, that the script could count. I imagine that this board and most like it enter a count into the db for each login/logout, and do it that way.
Wish I could be more help....