Maximum terrain layers?

What are the current maximum amount of layers you can use for terrain painting?
Are there any workarounds to use more?

I checked the documentation but couldn’t find the info.