It seems "capsicum" solved his or her problem. But if there is an interest, I've been fiddling with a Delphi CGI counter that works, based on the following counter:
http://homepages.borland.com/aohlsson (if it's still there, haven't checked)
"capsicum" can reply to this message if there still are problems. I might be able to help. Code is too verbose to post here, so it has to be made via e-mail, if at all.