added approx prime counting function