Add binary format for counters

May not be optimal, but adds Tag and Vsn fields to make upgrade / downgrade simpler in future.