Synthetic Cassettes for pH-Mediated Sensing, Counting, and Containment.