accurately calculate number of clusters found
in cmd line mode, if spectral barfs, don't use