A computer-controlled Gerdien atmospheric ion counter