The tutorial only includes a button for incrementing the counter so using the mod function would work in the context of this component tutorial.
If the component your designing allows the parent component to set a value directly (as opposed to just incrementing) then you'd probably want to set the private _counter back to the starting number (and ensure that it also properly notifies the parent component that the value was modified).