private int count(boolean[] arraySetted,byte[][] array,byte[] value){
  if (value != null) {
    int counter=0;
    for (int i=0; i < array.length; i++) {
      if (arraySetted != null && arraySetted[i] && Arrays.equals(value,array[i])) {
        counter++;
      }
    }
    return counter;
  }
  return 0;
}

private int count ( boolean [ ] arraySetted , byte [ ] [ ] array , byte [ ] value ) { if ( value != null ) { int counter = 0 ; for ( int i = 0 ; i < array . length ; i ++ ) { if ( arraySetted != null && arraySetted [ i ] && Arrays . equals ( value , array [ i ] ) ) { counter ++ ; } } return counter ; } return 0 ; }
counts how many times ' value ' occurs in ' array '
