compute stats int bin