The gzstats command has been replaced with gz stats, notice the space between gz and stats. There are many other command utilities, use gz -h to see them all. This feature is present in gazebo 5+.