A new method to approach enumerative questions about rational curves on algebraic varieties is described. The idea is to reduce the counting problems to computations on the Néron-Severi group of a ruled surface. Applications include a short proof of Kontsevich‘s formula for plane curves and the solution of the analogous problem for the Hirzebruch surface F$_3$.