Hierarchical Bayesian analysis of ecological count data