public static int Count(this ShipData data, Type2 type2) { return data.Slots.Count(x => x.Type2 == type2); }