stats: add loops per second counter in the stats segment.