There is no limit to the amount of lights you can have, however, there is a limit to how many shadow casting lights can be in a scene. If you have 31 lights, any new lights added will not cast shadows. If you need more than 31 lights, but not all the lights need to cast shadows, you can disable shadow casting on some.