Instead of looping twice (internally) on shippables, add one more counting variable like `$numMatches`.