we probably can set all these properties in a better way (with a dict associating the name of the attribute with the name of the key in `self.counts`)