docs: @SuppressWarnings("unchecked")
    public static <E, C extends Counter<E>> C scale(C c, double s) {
      C scaled = (C) c.getFactory().create();
      for (E key : c.keySet()) {
        scaled.setCount(key, c.getCount(key) * s);
      }
      return scaled;
    }