[SHELL] added the stats function for babel command