Counting rational and elliptic curves in CP^2