Replacing Stats.table with Stats.countmap

Following 57fda9601f4fe7ef156c497b3d18f93722a0a566 on JuliaStats/Stats.jl