According to the general gas equation n=PV/RT, if P and T remain the same, a reduction of the volume to half implies the same reduction of the number of molecules in the gaseous medium.