public static count(source as IList<T>, plan as QueryPlan<T, R>) as Long:
Counts a non-distinct plan without projecting, sorting, or materializing. Distinct plans still require projection because distinctness applies to result values rather than source rows.