Complex sentence: During the Edo period these shrines reached 500 in number, but after the Meiji Restoration many were abandoned, and others united with shrines in the area.
Split into simpler sentences: During the Edo period, these shrines reached 500 in number. After the Meiji Restoration, many were abandoned, and others united with shrines in the area.