add counter for generation page