Not that this has anything to do with the CGI problem, but some of your closing tags at the end of the page are misplaced or not needed.
There’s a /p outside an /html, plus there’s another /html later, so you can get rid of that first one and be fine.
Your font tags near the end are misformed. After the font color, you have a /font within the existing brackets, plus another /font after the counter.
Hopefully fixing the permissions will help. Otherwise, you’ll have to log into your account and manually run that counter CGI to test it out.