It's been while since I've even looked at this code. It should work though. Replace my 3 IP blocks with yours Hope it helps.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<?php
//GET THE IP ADDRESS
$ip = getenv("REMOTE_ADDR");
//WHERE'S THE FILE?
$fileloc = ("count.txt");
//OPEN WHAT, HOW?
$whattoread = fopen($fileloc, "r+");
//READ IT
$count = fread($whattoread, filesize($fileloc));
//CLOSE
fclose($whattoread);
//WHERE'S THE FILE?
$fileloc = ("count.txt");
//OPEN WHAT, HOW?
$whattoread = fopen($fileloc, "w");
//Increment the count by 1
$count = $count += 1;
//Loop through 255 times to check for a dynamic IP address(forth octect only).
for ($i = 1; $i <= 255; $i++)
{
$ip_break_down = "208.20.41."; //ASSIGN THE VAR TO THE FIRST 3 OCTETS
$x = $ip_break_down .= $i; //concatenate the 2 vars
if ($ip == $x)
{
$count = $count -= 1; //subtract 1 from the count
}
}
fputs($whattoread, $count);
echo $count ." people have been here" ;
fclose($whattoread);
?>
</BODY>