seqtransn function

Number of transitions in a sequence