Adding a counter to your page isn't a hard task. Just by adding the following html code anywhere in your document will install a default counter: :
<img src="http://www.ovis.net/cgi-bin/Count.cgi?df=sample.dat" align=absmiddle>
The string between ? and " is called the QUERY_STRING. Make sure there are no newlines in the <img src= line and no space in the QUERY_STRING. Here in, df=sample.dat, df means datafile and sample.dat is the counter datafile. The counter stores the hits in the datafile. You can pick a datafile name of your choice. It will be created automatically the first time it is called if no other datafile resides on the server with the same name. A good way to name your datafiles is to use a combination of your username. For example, testuser.dat, testuser1.dat, testuser2.dat. This will rule out the possibility of datafiles not being created because of duplication.
The counter program has lots of options, you can make it work and look the way you desire. In the query string, you can use the options described in the Counter Options Table. The options can be separated by a | or a &. You can use either one or a combination of both. Here is an example:
<img src="http://www.ovis.net/cgi-bin/Count.cgi?ft=T &frgb=gold|df=sample.dat" align=absmiddle>
The options can be in any order and not case sensitive.
Anyway, look at this Example Page you will get the picture.