the number of clusters

A R function which can help us to determine the number of clusters