Find the length of a given sequence.

Updated: