How do you measure keyword density on your pages?

Personally, I just count the number of times my keyword shows up. My count is done while viewing the code, so I can see

inside meta tags etc.

Is there a better way?