added some basic documentation on counting values. fixes #297