use map to track stat commands

When is the function AssertLoggedNumber used?