There are many sample asp codes for hit counters. One can be found on the link attached to this article. Howerver you need to make a change there. You need to make a change into this line:
Copy your counter.txt file into _virtual_[username] folder.
Change this line
strFileName = Server.MapPath("Counter.txt")
strFileName = "e:\privatefiles\[username]\counter.txt
* Replace the [username] with your ftp user name.
See Also :http://www.devasp.com/samples/counter.asp