int count(char ch) // Consider size of s = 5
{
    for (int i = 0; i < strlen(ch); i++)
    {
        if (strcmp(ch[0], ch[i+1]) == 0)
            c++;

        if (strcmp(ch[1], ch[i+1]) == 0)
            d++;

        if (strcmp(ch[2], ch[i+1]) == 0)
            e++;

        if (strcmp(ch[3], ch[i+1]) == 0)
            f++;

        if (strcmp(ch[4], ch[i+1]) == 0)
            g++;
    }

    return 
    {
      ch[0] = c;
      ch[1] = d;
      ch[2] = e;
      ch[3] = f;
      ch[4] = g;
    };