A capacitive-type counter of nanoparticles in air, based on measurement of the capacitance of a capacitor with a variable dielectric part, has been developed. The method is suitable for detection of aerosols in a wide concentration range, regardless of shape or chemical composition. The method is demonstrated experimentally and verified by numerical simulations. The counter allows for construction of a simple, portable, and cheap nanoparticle detector for air quality control.