added count to setLight