Do a manual running total. Create an Initialize formula:
global numbervar nCount:=0;
Put this in the Report Header if it will never restart, or in a Group Header if you want it to restart at 0 when it hits a new group.
Then create the Calculation formula:
global numbervar nCount:=nCount + (if {table.field} = 'has logged on' then 1
else if {table.field} = 'has logged off' then -1
else 0);
nCount;
Depending on the field you may have to do a if 'has logged on' in {table.field} or something along those lines.
If you want to display the number you need a Display formula:
global numbervar nCount;
Hope that helps.