Another alternative, if you wanted to count numbers of other characters too, is to use one of the java.util.Arrays.sort() methods on the character array alluded to in some of the other comments. Then...