update to output the number of halos per bin