whydo you need a `counter` variable? just use `vtxs_trim->size()`