Add Sample and Counter classes.
Add entropy calculation.