Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence.