1. Download this program by click this
2. Unzip file
3. Modify the following section of the "counter.cgi" program
$filehead = "http://your-domain.com/counter.html";
You should replace "YOUR-DOMAIN with
your virtual server's domain name
$usedfile = "usedfile.txt";
You should replace usedfile.txt with
yourfilename.txt
$resultpage = "result.html";
You should replace result.html with yourfilename.html
4. FTP to your server by use WSFTP
5. chmod to 775 to counter.cgi
6. chmod to 777 usedfile.txt
7. Done