fix non-zero count
fixing counters