The number of laws is limited by several factors, among them:
The ability of the governed to remember and attend to them all
The resources of the government available to explain, interpret and enforce compliance
The willingness of the governed to obey them without a gun being brought out
The willingness and ability of the government to bring out a gun to enforce them
For instance, when the rule of avoidance in late imperial China created a 5x increase in rate of new regulations, the result was up to 30% decrease in tax collections and a counterintuitive increase in the power and influence of local clerks, gentry and militias, laying the groundwork supportive of the eventual mutiny against and collapse of Qing rule