\displaystyle  1 + \frac{1}{w} \sum_{i=1}^{h(D)} \sum_{a,b \in {\bf Z}: Q_i(a,b) \leq x} 1.