Incidence estimates with application to Fourier analysis.