Define var!

hi guys,
I’m trying to code this:

<?
$count++;
setcookie(‘count’, $count);
print “$count”;
?>

and when I run it on my localhost, it erro:

Warning: Undefined variable: count in c:\www\phptest\cookie.php on line 2

Warning: Cannot add header information - headers already sent by (output started at c:\www\phptest\cookie.php:2) in c:\www\phptest\cookie.php on line 3
1

please show me how to correct (define var) them ? thanks.