Driver code
public static void Main ( string [ ] args ) { string [ ] tmp = { " hi " , " data " , " geeksforgeeks " } ; List < string > strings = tmp . ToList ( ) ; string chars = " tiadhae " ; Console . Write ( countCharacters ( strings , chars ) ) ; } }