How to generate StatCounter code for wordpress:
1. Go to the site of stat counter and create a new account.
2. Login to your account and click on Add a StatCounter project.
3. Enter your blog URL and other details in the form and click on Next.
4. Now click on “Configure and Install code”.
5. Configure the counter and click Next.
6. In the installation options, you will find the field “Please chooses your blog/web page editor Install Guide”.
Select WordPress.org (I pay for hosting) if it is hosted blog.
Select wordpress.com (hosted by wordpress) if it is a free blog.
7. Copy the code and follow the instructions provided:
For wordpress hosted blog, click here
For self hosted blog, click here