/// <summary>
        /// Returns an expression for the Count method call (no predicate) e.g. q => q.Count(). <![CDATA[ Expression<Func<IQueryable<Account>, double>> countExpression ]]>
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="field"></param>
        /// <returns></returns>
        public static Expression <Func <IQueryable <T>, int> > BuildCountExpression <T>() where T : class
        {
            ParameterExpression param = Expression.Parameter(typeof(IQueryable <T>), "q");

            return(Expression.Lambda <Func <IQueryable <T>, int> >(param.GetCountMethodCall(), param));
        }