Added prime counting functions.