docs: public static CounterType decodeType(byte flags) {
        switch (flags & 0x03) {
           case WEAK_COUNTER:
              return CounterType.WEAK;
           case BOUNDED_COUNTER:
              return CounterType.BOUNDED_STRONG;
           case UNBOUNDED_COUNTER:
              return CounterType.UNBOUNDED_STRONG;
           default:
              throw log.invalidCounterTypeEncoded();
        }
     }