C # program to count number of substrings of s1 present in s2 .
using System ; class GFG { static int countSubstrs ( String s1 , String s2 ) { int ans = 0 ; for ( int i = 0 ; i < s1 . Length ; i ++ ) {