This API is deprecated and will be removed with the next major release.
length
Returns length property of the class.