On the number of zeros of general exponential polynomials