In the Thai communities I've spent time in, there appears to always be a happy equilibrium of number of monks to number of residents.

Do temples have limits for the number of monks based on available accommodation? Do monks transfer to other temples that have shortages?