Driver code
public static void Main ( String [ ] args ) { String [ ] arr = { " ab " , " aab " , " abaaaa " , " bbd " } ; String S = " ab " ; Console . Write ( countStrings ( S , arr ) + " STRNEWLINE " ) ; } }