Razor bumps

How do I get rid of razor bumps or stop getting them ?  I use SOOOO much shaving foam/soap and always seem to get them !!!!!!