Does the assumption that the 2d Simpson’s rule require nine flops mean given only the values of a, b, c, d, we consider it takes nine flops plus the function evaluations to approximate the integral?

How are the flops counted if some terms in the formula is computed beforehand, so that evaluating the formula may use the already computed value directly?