Draw from a dirichlet distribution based on number of counts in transition. Adapted from brms::rdirichlet
Useful links