adapt hyperparameters to counts