Since that is a lot of HTML, I'd do this in the PHP file:
<?php
php code...
?>
HTML counter stuff
<?php
rest of your php code (if any)
?>
Otherwise, you are going to have to print all that out with the print() function.
print("All that counter code");
And you'd have to put escape chars () before all the quotes. Read the above topic "Outputting HTML" for other ways to do this.
Hope this helps!
Powerful, Affordable PHP/MySQL Hosting
http://www.missoulaweb.com