Add statistics cli app

Be good to add a spec for this logic