Computer-interfaced digital pulse counting circuit