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 .
m [ str [ i ] ] -= 1 NEW_LINE count -= 1 NEW_LINE