Modular forms in enumerative geometry