Adding counter reset for color array.