Simple hit counter:
$fp = fopen("hits.dat","w+");
if(fgets($fp,3000) == "")
$hits = 1;
else
$hits = fgets($fp,3000);
$hits++;
fputs($fp,$hits);
fclose($fp);
That should do it...A graphical one is a little more complicated depending on the implementation. Search the web, thats what its there for 🙂
Hope this Helps!