Quit porn then what?

Hello folks! I understand that watching porn is quite bad. However, few things are not clear. Anyway, sperm needs to come out. If I quit watching porn, then how often and in which way the masterbation should be done?

Thanks in advance