fix assert for counters (CASSANDRA-6175)