Number of closed-channel molecules in the BEC-BCS crossover