use unsigned instead of uint32_t for LDB counters.