There is no mod that does this only to my knowledge. You are more than welcome to try out my mod though which changes it. Link in my signature.

If you want to do it yourself, you need to unpack export_descr_buildings.txt and change recruitment_slots under capabilities for wall type structures to the number you want. Maximum is 9 I believe. Afterwards you need to run your game using --io.file_first