Generalized 2-bit saturated counter to N-bit saturated counter