The early and late stationary regions define distinct positive-frequency mode bases and hence an in-vacuum and out-vacuum. Write their Bogoliubov transformation as
The corresponding operators satisfy
Using and the canonical commutator gives the particle number from Bogoliubov coefficients:
Time dependence in the sandwich region can make , so the in-vacuum contains out-particles.
The in-vacuum satisfies . For the out-mode number operator , substitute the operator transformation and use the canonical commutation relations. Only the contraction survives, giving the particle number from Bogoliubov coefficients
For a continuous mode label, the sum becomes the corresponding integral with Dirac-delta normalization.