New convenience function n_anyons in utils.py, counts up the number of violated stabilizers of a given error type, X or Z