php访客计数器cookie不工作为什么?

guys this is my code for setting up a visit counter using a php cookie but the counter won't increment after the first visit ! Means it doesn't go beyond '1'. HELP !

<?php

    ob_start();

    error_reporting(E_ALL);
    ini_set("display_errors", "On");        

    function saveCookie($name='cookie', $val='', $time=0) {
        if ($time == 0) {
            setcookie($name, $val, 0, "/");
        }     else     {
            setcookie($name, $val, time() + ($time*1000*60*60*24), "/");            
        }
    }
    function clearCookie($name='cookie') {
        setcookie($name, '', -1, "/");
    }


   $countVisit = ($_COOKIE["countVisit"]) ? $_COOKIE["countVisit"] : 0;

   if (!isset($_COOKIE["countVisit"]))
   {
      saveCookie("countVisit",1,1);
      echo "WELCOME !";
   }
  else{
        $_COOKIE["countVisit"]++;
   }

    echo "You've visited " . $countVisit . " number of times";

 // saveCookie("countVisit",$countVisit,30);

?>