Given an integer array nums, return the length of the longest strictly increasing subsequence. A subsequence is formed by deleting zero or more elements without changing the order of the remaining elements.
Write a function that returns only the length, not the subsequence itself.
numsdef length_of_lis(nums):