counter: add HAS_IOPORT_MAP dependency