Homotopy quantization of real curve enumeration