using System;
using System.Linq;
public class Program
{
public static void Main()
string strInput = "51200000000000000000000000000000";
int zeroCount = strInput.Count(x => x == '0'); // will be 29
Console.WriteLine("Number of zeros is {0}", zeroCount);
}