Yosemite had more than 4 million visitors last year. Its visits peak on average between June and August, according to National Park Service statistics.