How to generate StatCounter code for wordpress:
1. Go to the stat counter site 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.Goto your wordpress dashboard->widgets->Text widget-> Paste code->Save.
You are done with your statcounter now..just go and verify your blog once 😀