Least-square fit, Ω counters, and quadratic variance