await service.open(null);
await counters.open(null);

var countExec = 2;

for (var i = 0; i < countExec; i++) {
  mycomponent.myMethod();
}