Driver code
public static void Main ( ) { string S = " abcpxyz " ; char [ ] L = { ' a ' , ' p ' , ' q ' } ; int n = L . Length ; Console . WriteLine ( countSubString ( S . ToCharArray ( ) , L , n ) ) ; } }