Surely the number of people needed to maintain a reasonable throughput of the legal system scales approximately linearly with the number of offences? I don't see why a country of millions would be unable to have an efficient and functional legal system, even if the US does not.
The legal system is mostly a fantasy. It doesn't exist for most people. Currently it only serves large corporate and political interests since only they can afford access.