There are a number of ways of achieving this but the two ways I would concider would be
- Google analytics – http://wordpress.org/extend/plugins/google-analytics-for-wordpress/
- WordPress Sitestats – http://wordpress.org/extend/plugins/stats/ or install http://wordpress.org/extend/plugins/jetpack/ as it comes with that.