code: public int setCount (K key, int count)
      {
          int[] val = get(key);
          if (val == null) {
              put(key, new int[] { count });
              return 0; // old value
          }
          int oldVal = val[0];
          val[0] = count;
          return oldVal;
      }
docs: Set the count for the specified key.
  
  @return the old count.