Understanding the Effect of Atmospheric Density on the Cosmic Ray Flux Variations at the Earth Surface