Turns out there's also a limit on statutes. I'm missing too much info to do the calcs. At level 17 I'm thinking you'll have a max of about 10 or so royal buildings. If you replace your towers with observatories (150 RP) and have the 3 RP walls you should be able to do it easily.