Transform a timestamptz span set value into a temporal integer value for performing temporal count aggregation.