refactor counters; set up a more interesting example