[counters] Fix --stat to not dump counters for all sections.