Lines per second counter and balanced reverse engineering