Estimation of number of clusters and identification of atypical