[stats] counting commands by restriction level