Compact populations by group counting