use map to track stat commands

when you want to assert that a certain stat got logged a certain number of times