Replacing Stats.table with Stats.countmap

Following JuliaStats/Stats.jl@57fda9601f4fe7ef156c497b3d18f93722a0a566.