Driver Code
public static void main ( String args [ ] ) { String str1 = " geeksforgeeks " , str2 = " geeks " ; System . out . println ( countSubstrig ( str1 , str2 ) ) ; str1 = " hikakashi " ; str2 = " hi " ; System . out . println ( countSubstrig ( str1 , str2 ) ) ; } }