Driver Code
public static void Main ( string [ ] args ) { GFG count = new GFG ( ) ; string s = "00100101" ; char [ ] str = s . ToCharArray ( ) ; int n = str . Length ; Console . WriteLine ( count . countSubStr ( str , n ) ) ; } }