read_seq_len function

Read sequence index