Use lightCount instead of hard-coded value.