Correlation of Cosmic-Ray Intensity and Solar Activity