As well as the wordpress stats plugin, I useĀ Google Analytics for getting statistics for a website.
In order to validate your website you need to add some code:
Go to Appearance then (Theme) Editor and find the header.php or footer.php file (I used the footer).
Then paste your code above the < / body > code
Update that theme file