Max limit for /dev/srn creation

What is the maximum amount of /dev/srn (/dev/sr0,/dev/sr1…/dev/srn)
So what is the maximum value of n ?
And where can I set it if possible ?

Typically set in the Linux kernel source code. You need to download and search for it.

I did not know it was that fundamental. Thanks for confirming that.

Do you know by chance what the default amount of devices that can be mounted on /dev/srn, where n=0,1,2…

I cannot find anything online about device count max limits except for hard drives eg /dev/sdan
If there are no documented maximum value, I will have to go the silly way and just create devices in a loop with a script and see how far it goes.
update:

Wrote a script and it can only add 32 devices.