Saving with no Pokemon will default to 1. A different amount of Pokemon will require a new skeleton to be filled in with the entered data, instead of not having anything allocated to hold the data.
pk3DS: A package of Pokémon X/Y/OR/AS ROM Editing Tools by various contributors.