Hi,
I don't think there is any simple maximum number of layers, but FS2004 will check all the entries when it starts, which will increase the initial loading time. I have several hundred scenery layers and FS2004 routinely takes at least a couple of minutes to get to the initial aircraft/scenery load selection screen.
This is what one gets from having run FS2004 for many years !
Alastair