If you want it to count page views, and not unique visits, you could try:
<?php
$fp=fopen("counter.txt","r");
$count=fgets($fp,1024);
fclose($fp);
$fw=fopen("counter.txt","w");
$cnew=$count+1;
$countnew=fputs($fw,$count+1);
fclose($fw);
echo "$cnew";
?>
note: you need a file named counter.txt in the same directory, and it needs to start off with the number 0 in it. Simply include it on any page you want counted.
Nice scriptz0r