yt.units.unit_object.Unit.count_ops

Unit.count_ops(visual=None)

wrapper for count_ops that returns the operation count.