static int bitCount(BitSet bs) { ret bs == null ? 0 : bs.cardinality(); }