using System;
using System.Linq;
using System.Text.RegularExpressions;

namespace MyCompiler 
{
    class Program 
    {
        public static void Main(string[] args) 
        {
            Console.WriteLine(findNumber("abcabcabcabc","abc"));
        }
        
        public static int findNumber(string str, string substr)
        {
            int count = Regex.Matches(str,substr).Count;
            return count;
        }
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: