adding an endpoint to get the current sequence number