public static int cardinality(SkippableIterator i) {
		int card = 0;
		while (i.hasValue()) {
			card += Integer.bitCount(i.getCurrentWord());
			i.advance();
		}
		return card;
	}
public static int cardinality ( SkippableIterator i ) { int card = 0 ; while ( i . hasValue ( ) ) { card += Integer . bitCount ( i . getCurrentWord ( ) ) ; i . advance ( ) ; } return card ; }
Cardinality.

@param i
the i
@return the int