Non-harassment order is the technical term and they can be (and often are) automatically imposed by the court when someone is a victim/witness that has come forward. No money or lawyers needed.
And there’s two separate convictions (that I know of - I don’t know if there’s additional ones outside of that).