An automatic condensation nucleus counter