def var icount as int no-undo. for each _user no-lock: assign icount = icount + 1. end. message icount view-as alert-box.
That won't tell you anything about accounts. The license file tells you about the number of database connections in each hour (current, maximum, minimum) for interactive clients, batch clients, and the total.
User records are in _User (at least for older applications that still use _User as the authentication store), but it's not a VST.VST tables. I think its _User, but i dont have access to a progress database right now.