Driver function
int main ( ) { string str1 = " geeksforgeeks " , str2 = " geeks " ; cout << countSubstrig ( str1 , str2 ) << endl ; str1 = " hikakashi " , str2 = " hi " ; cout << countSubstrig ( str1 , str2 ) << endl ; return 0 ; }