add ext method to for the light counter.