Any quick method to count the number of set bits in a BitSet other than the usual \'keep a counter\' method?
The cardinality() method returns the number of set bits.