Learning the Number of Autoregressive Mixtures in Time Series Using the Gap Statistics