private bool DetectCountChange(int[] counts) { for (int index = 0; index < counts.Length; index++) { var newCount = this.clusters[index].PointCount; if (newCount == 0 || newCount != counts[index]) { return true; } } return false; }