make perm-count work with set test