During the Joseon period, the number of Buddhist monasteries dropped from several hundred to a mere thirty-six. Limits were placed on the number of clergy, land area, and ages for entering the sangha. When the final restrictions were in place, monks and nuns were prohibited from entering the cities. Buddhist funerals, and even begging, were outlawed. However, some rulers occasionally appeared who looked favorably upon Buddhism and did away with some of the more suppressive regulations. The most noteworthy of these was the Queen Munjeong, who, as a devout Buddhist, took control of the government in the stead of her young son Myeongjong (r. 1545–67), and immediately repealed many anti-Buddhist measures. The queen had deep respect for the brilliant monk "Bou" (보우, 普雨; 1515–1565), and installed him as the head of the Seon school.