
Validate one MCMC count argument and return it as an integer
Source:R/nle_posterior.R
check_mcmc_count.Rdas.integer() on its own lets a nonsensical count through. thin = 0 is the
one that bites: slice_sample() then runs warmup iterations and no kept
ones, and returns its zero-initialized array of draws with diagnostics
computed on it. The counts are checked here, before anything is stored on the
posterior object.