Justin,
Seems like you're using setcookie a bit wrong.
The allmighty manual says:
int setcookie (string name [, string value [, int expire [, string path [, string domain [, int secure]]]]])
That means that you should set the cookie somewhat like this:
setcookie("count", "1",... );
That way the cookie value will show up as $count in the scripts, and even better HTTP_COOKIE_VARS["count"] (if my memory serves) which you should use to avoid hackers using for example a query string to simulate cookie value.
The way you're doing it now, is you're setting the cookie name to "gotroms", and you're giving it a string value as "$counter = 0", which means you'd have to run the value of the cookie name gotroms via the eval function to evaluate the PHP code in it. THIS IS VERY DANGEROUS because I can hack into the cookie and put any PHP code into it and that code will be executed on the server...
Hope this helps.. :-)
/Jocke
PS, popups are evil, ads are evil
PPS, just had to make that clear ;-)