ASP Visit Count Cookie

Visit Count Cookie

<%
dim numvisits
response.cookies("NumVisits").Expires=date+100
numvisits=request.cookies("NumVisits")

if numvisits="" then
   response.cookies("NumVisits")=1
   response.write("You're visiting this page for the first time!")
else
   response.cookies("NumVisits")=numvisits+1
   response.write("You've visited this page " & numvisits)
   if numvisits=1 then
     response.write " time!"
   else
     response.write " times!"
   end if
end if
%>
<html>
<body>
</body>
</html>