An unknown fraction p of a certain population smokes, and random sampling with replacement is used to determine p. It is desirable to find p with an error not exceeding 0.005 with a confidence level of 95%. How large should the sample size be?

I am confused by the error and the confidence level numbers.

Is this a binomial event? Thanks for any leads.