Three approaches that occur to me are
-
matching moments: calculate weighted mean and variance using GitHub - JuliaStats/StatsBase.jl: Basic statistics for Julia (your counts are a weight vector)
-
the same with some quantile statistics (eg 25-75%)
-
maximum likelihood, or likelihood-based methods in general: given a mean and a standard deviation you can calculate the log likelihood of each value, counts multiply that