Lagrangian topology and enumerative geometry