A counter API for interacting with hardware via Artoo/Pebble