Capacitively coupled hot-electron nanobolometer as far-infrared photon counter