Can you please tell how keyword density affects in SEO?

Can you please also tell if it is applied to meta data too?