prime counting function