#include<stdio.h>
#include<string.h>
int count_chars(char const*str,char const*chars)
{
int a=strlen(str);
int b=strlen(chars);
printf("%d %d\n",a,b);
int i,j;
int count=0;
for(i=0;i<b;i++,chars++)
for(j=0;j<a;j++,str++)
if(*str==*chars)
count++;
return count;
}
int main()
{
char a[]="chen";
char b[]="chenlinlin";
int count=count_chars(b,a);
printf("%d\n",count);
return 0;
}