pH counter