import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO code application logic here
Scanner shuru=new Scanner(System.in);
String shen;
shen=shuru.nextLine();
char [] a;
a = shen.toCharArray();
char x;
int y=0;
x = shuru.next().charAt(0);
for(int i=0;i<a.length;i++)
{
if(a[i]==x)
{
y++;
}
else
{
;
}
}
System.out.println(y);
}
}
网友评论