counting looks OK -> needs more testing