Array right choice for this case?

well i created enough arrays for all groups
and simply counting them wouldnt suffice because i need the pickup
to spawn at the location of the last killed of every 5er group
and they also can be alive at the same time so just counting would only work
if only 5 are alive every time