Each character (letter, number, punctuation) has a numeric value. That value can be used as an index into an array of counters which you can increment for each character you read.
Reputation Points: 3278
Solved Threads: 894
Posting Sage
Offline 7,747 posts
since May 2006