General models for resource use or other compositional count data using the Dirichlet-multinomial distribution