PrimePi

PrimePi[x]
gives the number of primes less than or equal to x