I haven’t done it myself, but based on the list of GLSL inputs, it looks like something like that should work.
And searching the forum, I found this post:
(It looks like the preview loses some formatting, so click through for a readable version.)
The post is old, so things may have changed, but it looks like it may have the information that you’re looking for.
If that’s the number of lights that you think that your project calls for, then it seems to me that it’s worth having that number of lights!