lib/parse/query.rb
def count
      old_value = @count
      @count = 1
      res = client.find_objects(@table, compile.as_json, _opts ).count
      @count = old_value
      res
    end
def count
      old_value = @count
      @count = 1
      res = client.find_objects(@table, compile.as_json, _opts ).count
      @count = old_value
      res
    end
Perform a count query.
 @example
  # get number of songs with a play_count > 10
  Song.count :play_count.gt => 10

  # same
  query = Parse::Query.new("Song")
  query.where :play_count.gt => 10
  query.count
 @return [Integer] the count result