seqentrans function

Event sequence length and number of events