public int CountOccurances(int n) { foreach (SudokuCell key in sudoku.cellColl) { if (sudoku.TruePossibilities(key).Contains(n)) { frequencyCounter.IncrementFor(n); } } return(frequencyCounter.GetCount(n)); }