AccountStats is a free Perl program (NOT a CGI) that scans Common or Combined format access_logs and summarizes the account activity for people who have logged in (name/password) to password(.htaccess/.htpasswd) protected areas on the system. It makes no Attempt to figure out the realm (only a problem if you have multiple Realms with different people having the same names assigned).