Find the value of frequency of minimum element
static int count ( Vector < Integer > arr , int min_i ) { int count = 0 ; for ( int i = 0 ; i < arr . size ( ) ; i ++ ) if ( min_i == arr . get ( i ) ) count ++ ; return count ; }