/// <summary>Run a pre-compiled query, return count of matching records.</summary> public static int count <tRow>(this Recordset <tRow> rs, Query <tRow> q, params object[] args) where tRow : new() { q.query(rs, args); if (q.multivalues) { return(rs.CountUniq()); } return(rs.Count()); }