Print 0 if nothing was replaced.