code: public void setCreditCount(String bucket, int count) {
          ArrayList<String> buckets = getBuckets();
          if (!buckets.contains(bucket)) {
              buckets.add(bucket);
              setBuckets(buckets);
          }
          setInteger(KEY_CREDIT_BASE + bucket, count);
      }
docs: <p>Sets the credit count for the default bucket to the specified {@link Integer}, in preferences.</p>
  <p>
  <p><b>Note:</b> This does not set the actual value of the bucket itself on the Branch server,
  but only the cached value as stored in preferences for the current app. The age of that value
  should be checked before being considered accurate; read {@link #KEY_LAST_READ_SYSTEM} to see
  when the last system sync occurred.
  </p>
  
  @param bucket A {@link String} value containing the value of the bucket being referenced.
  @param count  A {@link Integer} value that the default bucket credit count will be set to.