Enumerative invariants in algebraic geometry and string theory lectures given at the C.I.M.E. Summer School held in Cetraro, Italy, June 6 - 11, 2005 (Springer, 2008)