// Count returns the total number of results returned by the query.
Count returns the total number of results returned by the query.
// Count returns the total number of results returned by the query .
func (r *Result) Count() (int, error) {
	res := r.rawRes.ToIDispatch()
	if res == nil {
		return 0, nil
	}
	countVar, err := oleutil.GetProperty(res, "Count")
	if err != nil {
		return 0, errors.Wrap(err, "getting Count property")
	}
	return int(countVar.Val), nil
}
func ( r * Result ) Count ( ) ( int , error ) { res := r . rawRes . ToIDispatch ( ) if res == nil { return 0 , nil } countVar , err := oleutil . GetProperty ( res , " " ) if err != nil { return 0 , errors . Wrap ( err , " " ) } return int ( countVar . Val ) , nil }
Count returns the total number of results returned by the query.
Count returns the total number of results returned by the query .