using System;
using System.Text.RegularExpressions;
namespace MyCompiler {
class Program {
public static void Main(string[] args)
{
Console.WriteLine("Hello world!");
NumberOfRepeats("abcabcabcabc" );
NumberOfRepeats("bcbcbc");
NumberOfRepeats("llbllbllbllbllbllb");
NumberOfRepeats("kc");
NumberOfRepeats("abcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyzabcdefghijklmenopqrstuvwxyz");
}
public static void NumberOfRepeats(string str)
{
int res = Regex.Matches(str,str.Substring(0,2)).Count;
Console.WriteLine(res);
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: