Driver code
public static void main ( String [ ] args ) { String S = " abcpxyz " ; char L [ ] = { ' a ' , ' p ' , ' q ' } ; int n = L . length ; System . out . print ( countSubString ( S . toCharArray ( ) , L , n ) ) ; } }