On the counting function of the range of the Carmichael $\lambda$-function