\[N=\frac{1}{\pi}\int_{0}^{\pi}\left(Q(x)\right)^{2}\,\mathrm{d}x,\]