Find Duplicate Characters Count In A String Java