At least 118.
Why did the pharaohs stop building pyramids? Allegedly various theories mention the limited real estate of the new capital city (Thebes), tomb robbing deterrence, and the observed inability of the pyramids to withstand the dessert climate.