code: public void setCount(int count)
      {
          if (count < 0 || 0xFF < count)
          {
              throw new IllegalArgumentException("'count' is out of the valid range: " + count);
          }
  
          mCount = count;
  
          getData()[COUNT_INDEX] = (byte)count;
      }
docs: Set the transmission count.
  
  @param count
  The transmission count. The value should be in
  the range from 0x00 to 0xFF.
  
  @throws IllegalArgumentException
  The given value is out of the valid range.