extracting cluster count for parameter search