There's a logging feature precisely to debug these issue.
In general, the FSDT_GSX_NUMPASSENGERS is set by add-ons, but can also be set by GSX own Simbrief check. If you have an active flight plan on Simbrief, and it matches both the airplane and the airport you are in, it's assumed you want to use it, so it will be set to the value from simbrief.