stats: replace counters with simple integers