Coming back to this, not that it's highly needed or anything, but would it be possible to append to the flightplan remarks TYP/XZZZZ? X being NRAC and ZZZZ the same aircraft type declared on the flight plan.
Technically TYP should only be used if there are different types within the formation and field 9 ( NUMBER AND TYPE OF AIRCRAFT AND WAKE TURBULENCE CATEGORY) should be set to ZZZZ, but I'm concerned that would mess up with model matching on the network, so maybe this is an acceptable middle ground?
If we want to go all out, and be able to read from the flightplan to determine NRAC:
TYP\/([^\s]+(?:\s(?![A-Z]+\/)[^\s]+)*)
is the regex for capturing the TYP/ field
\b(\d+)
for capturing the number of aircraft of each type, from the match of step 1
- NRAC is the sum of the results from step 2