public int cardinality(){
  int sum=0;
  for (  long l : this.data)   sum+=Long.bitCount(l);
  return sum;
}

public int cardinality ( ) { int sum = 0 ; for ( long l : this . data ) sum += Long . bitCount ( l ) ; return sum ; }
compute the number of bits set to 1
