A Single-Electron Counter for Nanodosimetry