def count
      raise OData::NotSupportedError.new("You cannot call both the `links` method and the `count` method in the same query.") if @links_navigation_property
      raise OData::NotSupportedError.new("You cannot call both the `select` method and the `count` method in the same query.") unless @select.empty?

      @count = true
      self
    end
def count
      raise OData::NotSupportedError.new("You cannot call both the `links` method and the `count` method in the same query.") if @links_navigation_property
      raise OData::NotSupportedError.new("You cannot call both the `select` method and the `count` method in the same query.") unless @select.empty?

      @count = true
      self
    end
Used to return a count of objects instead of the objects themselves

 @raise [NotSupportedError] if links has already been called on the query

 @example
   svc.Products
   svc.count
   product_count = svc.execute