ASCII前提。書き捨てだから必要なincludeとかは適当に。

main() {
 int count[26], i;
 char buf[128], c;
 for (i = 0; i < 26; i++) {
  count[i] = 0;
 }
 while(fgets(buf, sizeof(buf), STDIN)) {
  for (i = 0; c = buf[i]; i++) {
   if (isalpha(c)) {
    count[tolower(c) - 'a']++;
   }
  }
 }
 for (i = 0; i < 26; i++) {
  printf("%c: %d", i + 'a', count[i]);
 }
 return 0;
}