Class that represents a pair
struct Priority { string s ; int count ; } ; struct Compare { int operator() ( Priority a , Priority b ) { if ( a . count > b . count ) return 1 ; else if ( a . count < b . count ) return -1 ; return 0 ; } } ;