Prime counting function