seq_length function

Set sequence length