this was in my post an hour ago from danny I added some of the lines but you get the idea. Your going ot have the same problem I have, it counts if they refresh the page. Need to find a way to stop it but I dont know the code to do it. anyways here is the sample.
<center>
<font size=4><b>Counter Added 9-10-02 You Are Visitor</b></font><br>
<center><font color="#FF0000">
<font size=6>
<?php
$counterFile='count.txt';
file_exists($counterFile) ? $count=trim(implode('',file($counterFile))) :
$count=0;
$count++;
if ($fp=@fopen($counterFile,'w'))
{
fwrite($fp,$count,strlen($count));
fclose($fp);
}
else
echo "Couldn't write counter file";
echo "$count ";
?>