Create or manage a counter