public static void Main()
Console.Write("\n\nFind the number of times a specific string appears in a string :\n");
Console.Write("--------------------------------------------------------------------\n");
Console.Write("Input the original string : ");
str1 = Console.ReadLine();
Console.Write("Input the string to be searched for : ");
findstring = Console.ReadLine();
strt = str1.IndexOf(findstring, idx + 1);
Console.Write("The string '{0}' occurs " + cnt + " times.\n", findstring);