Capturing first and last complete sequence data

Is there a simple finction that I can use to capture the piece count
from the first sequence and the last sequence completed as well as the
sequence number associated with the count?