client: format cleanup.
counters: add function to reset counter.

As requested by those consuming downstream.
counters: only increment n_counters after counter has been initialized.