#include<stdio.h>
#include<string.h>
int main(){
char strings[100], chars;
int result=0,i,flag,j;
scanf("%s %c",&strings
, &chars
);
for(i
=0 ; i
<strlen(strings
);i
++){ if(chars == strings[i]){
result++;
}
}
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RyaW5nLmg+CmludCBtYWluKCl7CgljaGFyIHN0cmluZ3NbMTAwXSwgY2hhcnM7CglpbnQgcmVzdWx0PTAsaSxmbGFnLGo7CgoJCXNjYW5mKCIlcyAlYyIsJnN0cmluZ3MsICZjaGFycyk7CQkKCglmb3IoaSA9MCA7IGk8c3RybGVuKHN0cmluZ3MpO2krKyl7CgkJaWYoY2hhcnMgPT0gc3RyaW5nc1tpXSl7CgkJCXJlc3VsdCsrOwoJCX0KCX0KCglwcmludGYoIiVkIixyZXN1bHQpOwoJcmV0dXJuIDA7Cn0=