public @NotNull ShowItem count(final @Range(from = 0, to = Integer.MAX_VALUE) int count) {
      if (count == this.count) return this;
      return new ShowItem(this.item, count, this.nbt, this.dataComponents);
    }
Sets the count.

@param count the count
@return a {@code ShowItem}
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/event/HoverEvent.java