Hi Thanos, thanks, I have done a new patch of the counter code in erazor-zone, it is here:
http://wiki.erazor-zone.de/wiki:projects:php:dokuwiki:counter#other_versions
I prevents an infinite loop when file permision prevents reading/writing of the counter data file.
Also, it supports php4.
Tested with 2006-03-09b