docs: def _count_conflicts(problem, assignment, variable=None, value=None):
      '''
      Count the number of violated constraints on a given assignment.
      '''
      return len(_find_conflicts(problem, assignment, variable, value))