char list[] = "a→b→a→a→c→d→b→c→c→d";
char *p = list;
int count['z' % 'a' + 1] = {0}, i;

while(*p) if('a' <= *p && *p << 'z') ++count[*(p++) % 'a'];