Honestly, Custom ROMs have been in decline of usage since few years. There are also Other ROMS like Pixel Experience, PixyOS, Havoc, evolutionX, PixelOS, Paranoid, Derpfest, CrDroid and lot more.
The reason for the drop is due to a combination of reasons like better OEM UI, unpublished Kernel code (Chinese OEMs, Mediatek), locked bootloaders and Safetynet issues.
I’m currently rocking CrDroid it has currently ~85K active devices (stats.crdroid.net).
IMO, the biggest headlines in the launch. 7 years is crazy timeline to support. But the phones have matured so much that it makes sense people would want to keep the phone for longer period of time