Some enumerative formulae for algebraic curves