       msg.send 'Must provide a brewery name to ask about.'
       return
 
-    count = 5
+    count = count_to_return
     untappd.searchBrewery (err, obj) ->
       return unless checkUntappdErrors err, obj, msg
 

      msg.send 'Must provide a beer name to ask about.'
      return

    count = 5
    untappd.searchBeer (err, obj) ->
      return unless checkUntappdErrors err, obj, msg


#  UNTAPPD_API_KEY - Your Untappd API Key
#  UNTAPPD_API_SECRET - Your Untappd API Secret
#  UNATPPD_API_ACCESS_TOKEN - A valid OAuth 2 token
#  UNTAPPD_MAX_COUNT - (optional) Number of results to return
#
# Commands:
#  hubot untappd - Recent friend activity
