added debug log option for pulsecount data