How many licks to finish a lollipop? Formula models how water currents shape and dissolve solids