New DecayCounter like C implementation