   $scriptname = $_SERVER['SCRIPT_NAME'];
   $countername = str_replace(".php",".txt",$scriptname);
   $countername = preg_replace("/.*\//","",$countername);
   $counter = file_get_contents($countername);
   $counter += 1;
   $CNT = fopen($countername,'w');
   fwrite($CNT,"$counter\n");
   fclose($CNT);
