Handle errors in counter.