Phase-adjusted estimation of the number