The problem I am working on asks me to have the user type text into a TextArea, and then count the frequency of all letters and display them, then display which letter was most frequent and how many times it was encountered.

I know I need an array for this, but how to implement it? I was thinking of something like this:
char charArr[] = {'a','b','c','d','e','f','g','h','i','j','k','l','m',
And then using a loop to check if the current character is a letter and if so, match it with one of the characters in the array and increment a counter. But will I need a seperate counter for each letter, or should I use a temp variable to store the current letter and if it matches increment a counter, and then overwrite it?