There is a keyword ACTIVITYCOUNT in bteq. I think it might be useful in your case.
--Sandipan
Attachments
Library
Quick Reference
Archives
Sample Index
2004 Indexes