Get reference sequence length