returns the frequency of a ts
f=freqts(ts)
* ts = a time series
* f = the frequency of the timeseries