// set a cookie called name and set it to expire in 144000 seconds 40 hours
setcookie("name", $name, time()+144000, "");
if ($Count) ++$Count; //if the $Count exists, increment it by one
else $Count = 1; // otherwise, set $Count to 1 for the first visit...
// set another cookie called Count
setcookie("Count",$Count, time()+144000, "");
if (!$name)
{
print "Hello Guest
";
print "What is your name?";
print "