Developing measurement devices and methods to track increasingly stringent emission standards, including particle number, is crucial. This paper presents a novel analytical model to describe the signal response of an electrostatic particle sensor not only to particle mass concentration, but also to the particle number concentration of in-flowing particles. The uniqueness of this model lies in its ability to calculate the signal as a function of particle diameter, enabling the determination of particle number concentration from the signal. The model considers the effects of aerosol flow, electrode voltage and temperature, and can be used for the optimization of the sensor geometry parameters, length, width, and electrode gap. The model was designed to optimize the sensor's geometry and signal retrieval as well as the optimization of the electric field between the electrodes. Comparative analysis was conducted between the proposed model and a model from the literature as well as experimental data from literature and experimental data collected in this paper.