text: Reduce the frequency of the current character and count by 1 , so that it cannot interfere with the calculations of the same elements present to the right of it .
code: m . set ( str [ i ] , m . get ( str [ i ] ) - 1 ) ; count -- ; }