The trapezoid pattern

Short answer

In the trapezoidal formula, how many times is each interior value f(xk)f(x_k) counted, that is, those that are not at the endpoints?