STEP ONE: Include the following server-side include statement in your html file:
<!--#exec cgi="/cgi-bin/newcounter.pl" -->
STEP TWO Change the extension of any html file containing a counter to .shtml (i.e. sales.html becomes sales.shtml).