Calculate the number of distributions in a <dist_spec>
Examples
ndist(Gamma(mean = 5, sd = 1))
#> [1] 1
ndist(Gamma(mean = 5, sd = 1) + Exponential(rate = 1))
#> [1] 2
Calculate the number of distributions in a <dist_spec>
ndist(Gamma(mean = 5, sd = 1))
#> [1] 1
ndist(Gamma(mean = 5, sd = 1) + Exponential(rate = 1))
#> [1] 2