For each metric or KPI in the Argument count and sum the number of data points. This is a convenience method most applicable when a single metric or a single KPI is used in the calculation.
var count = metrics.count();
If a single metric is input to the formula the above would be equivalent to calling:
var count = metrics.get('...').count();