If you want to see this script in action, go to
http://www.anyquestions.f2s.com/
Also you can see here a graphical hit counter.
Documentation and source code for these two hacks is also available from this page.
Let me know what you think.
Unfortunately it seems that the MySql connection on their server is not 100% reliable, so sometimes it shows error #10 instead of the pagecounter, sorry for this.