var execCount = 2;

for (int i = 0; i < execCount; i++)
{
    mycomponent.MyMethod();
}