anchor.diff:  %% same as the order of the elements in the results.
   foreach(View, Fun) ->
        #view{
  +        db=Db,
           method=Method, 
           body=Body, 
           headers=Headers,
           url = Url
       } = View,
  -    case couchbeam:db_request(Method, Url, ["200"], Headers, Body) of
  +    #db{options=IbrowseOpts} = Db,
  +    case couchbeam:db_request(Method, Url, ["200"], IbrowseOpts, 
  +            Headers, Body) of
           {ok, _, _, RespBody} ->
               {Props} = couchbeam_util:json_decode(RespBody),
               Rows = proplists:get_value(<<"rows">>, Props),
  
positive.code: 
  %% spec count(View :: view()) -> integer()
  %% @doc get number of results in the view
  count(#view{url=Url, options=Options, method=Method, body=Body,
          headers=Headers}) ->
      
      case couchbeam:db_request(Method, Url, ["200"], Headers, Body) of
          {ok, _, _, RespBody} ->
              {Props} = couchbeam_util:json_decode(RespBody),
              case proplists:get_value("limit", Options) of
  
negative.code:             Opts = proplists:delete("limit", Options),
              [{"limit", 1}|Opts]
      end,
      #db{server=Server, options=IbrowseOpts} = Db,
      Url = couchbeam:make_url(Server, UrlParts, Options1),
      case couchbeam:db_request(Method, Url, ["200"], IbrowseOpts, 
              Headers, Body) of
          {ok, _, _, RespBody} ->
              {Props} = couchbeam_util:json_decode(RespBody),
              case proplists:get_value(<<"rows">>, Props) of
  