implement quantity for metabox