Clustering to understand the number of groups in documents