private void UpdateTargetObserverCount(Dictionary<IPoint, int> dict, IPoint targetPoint) { if (dict.ContainsKey(targetPoint)) { dict[targetPoint] += 1; } else { dict.Add(targetPoint, 1); } }