handle 'scaler' mode, add event count and timestamping