#include <stdio.h>
#include <string.h>
int main()
{
char* string = "asdasdasd";
char* substring = "as";
int c = 0;
char* p = string;
int fndLen = strlen(substring);
while (p)
{
p = strstr(p, substring);
if (p) {
c++;
p+=fndLen;
}
}
printf("%d", c);
}