Find counts or sum of weights in bins. Useful for power calculations. Replaces hist command from R.
Useful links