finding number of clusters in data