Fourier Analysis in Arithmetic Statistics