Gets statistics about the pricing plans.
The getPlanStats()
function returns a Promise that resolves to statistics about the plans
on the site.
Currently this function provides only the total number of pricing plans, including archived plans.
Only users with "Manage Pricing Plans" permissions can get plan statistics.