Validates if Y is of an appropriate type for a time series and returns the length of the time series.
Y
Useful links