int strnum(char *a,char *b) { int num=0; while(1) { char *p=strstr(a,b); if(!p) return num; else num++; a=++p; } return num; }