Enumerative formulas of de Jonquières type on algebraic curves