Add generation counter.