Enumeration of rational curves via torus actions