Like any html document you paste the code at the point where you want it to appear.
Log in to Blogspot
click on the name of your blog to open the dashboard
click on the template icon
Scroll down to the Edit HTML box
Scroll down to the point in the BODY of the template where you want the counter to appear.
Paste your code
You need to understand some basic html.
My first guess is that you are pasting at the top of the template in the stylesheet rather than in the body.