why am i getting wrong answer for the HOLES problem

I am getting wrong answer for the holes problem,can anyone tell me what am i doing wrong?

#include <stdio.h>
#include <string.h>
int main()
{

   
    char a[100];
    char *c;
    int counter=0,t;
    scanf("%d",&t);
    while (t--) {
        
    counter=0;
    scanf("%s",a);
    c=a;
    const char *d={"ADOPQR"};
    int two={66};
    while (*c!='\0') {
        if (memchr(c, two, sizeof(two))) {
            counter=counter+2;
        }
        if (strchr(d, *c)) {
            counter++;
        }
        c++;
    }
         printf("%d\n",counter);
    }
   
    return 0;
}

Your code is giving wrong answer for this test case:

1

POWERB

Expected Output-5 Your Answer=11

Thanks for the help