Automatically estimating the number of clusters using DBSCAN algorithm