counting primes



Dear Maxima users,

What is a good way to code the prime-counting function with Maxima ?

Thank you very much,
Jean