in reply to Re: Yet another counter
in thread Yet another counter

Try:
print ("Content-type: image/x-xbitmap\n\n");
This should be compatible with most browsers.