fixed plot_boxcounts (wasn't made right)