added sequence length counter