Well, there already exists commands for some of the parts - date, time, uptime. Some of the counts are readily available.
So it boils down to "how do I count the number of X in zones marked as GRID?"
As I see it, a loop over rooms would do it. Something like this pseudocode:
Code:
int room_count = 0, mob_count = 0, pc_count = 0, object_count = 0
for (room in world) {
if (!is_in_grid_zone(room))
continue;
room_count++;
for (char in room) {
if (is_npc(char))
mob_count++;
else
pc_count++;
object_count += count_objects(char->wears);
object_count += count_objects(char->carries);
}
for (object in room) {
object_count++;
object_count += count_objects(object->contains);
}
}
The count of zones with GRID is a simple loop over the zones, and counting just the ones with the GRID flag.
I hope this can work as a template for your further work on this feature.