supports simple binning statistics