Small extension of moments, histogram

Add count function to moments.
Add simple error bars function to histogram.